package com.zhisuo.apicenter.model;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class ParkAreaCarRowMapper implements RowMapper<ParkAreaCar> {

    @Override
    public ParkAreaCar mapRow(ResultSet rs, int rowNum) throws SQLException {
        ParkAreaCar pa = new ParkAreaCar();
        pa.setId(rs.getInt("id"));
        pa.setParkareaid(rs.getInt("parkareaid"));
        pa.setCarid(rs.getInt("carid"));
        pa.setStatus(rs.getInt("status"));
        pa.setCreate_time(rs.getTimestamp("create_time"));
        return pa;
    }

}
